package cn.iocoder.yudao.module.member.convert.scorelevel;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.member.controller.admin.scorelevel.vo.ScoreLevelCreateReqVO;
import cn.iocoder.yudao.module.member.controller.admin.scorelevel.vo.ScoreLevelExcelVO;
import cn.iocoder.yudao.module.member.controller.admin.scorelevel.vo.ScoreLevelRespVO;
import cn.iocoder.yudao.module.member.controller.admin.scorelevel.vo.ScoreLevelUpdateReqVO;
import cn.iocoder.yudao.module.member.dal.dataobject.scorelevel.ScoreLevelDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 积分等级 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface ScoreLevelConvert {

    ScoreLevelConvert INSTANCE = Mappers.getMapper(ScoreLevelConvert.class);

    ScoreLevelDO convert(ScoreLevelCreateReqVO bean);

    ScoreLevelDO convert(ScoreLevelUpdateReqVO bean);

    ScoreLevelRespVO convert(ScoreLevelDO bean);

    List<ScoreLevelRespVO> convertList(List<ScoreLevelDO> list);

    PageResult<ScoreLevelRespVO> convertPage(PageResult<ScoreLevelDO> page);

    List<ScoreLevelExcelVO> convertList02(List<ScoreLevelDO> list);

}
